Skip to content

docs: Standardize via CONTRIBUTING.md + WRITING.md - #1086

Merged
tony merged 1 commit into
masterfrom
house-style
Aug 22, 2026
Merged

docs: Standardize via CONTRIBUTING.md + WRITING.md#1086
tony merged 1 commit into
masterfrom
house-style

Conversation

@tony

@tony tony commented Aug 22, 2026

Copy link
Copy Markdown
Member

AGENTS.md is read on every task, so a policy that matters to one class of change costs context on all the others. This splits how the project works from how it writes, so each loads when it applies, and makes both discoverable to humans rather than only to agents.

The root file becomes a router. It carries what should always be visible β€” what the repository is, where things live, and the change discipline every diff is held to β€” then points at one document per class of change.

Layout

AGENTS.md            router
CLAUDE.md -> AGENTS.md
.github/
β”œβ”€β”€ CONTRIBUTING.md  how we work: setup, the gates, tests, docs, releases, pull requests
└── WRITING.md       how we write: README, CHANGES, release notes, docstrings, comments, commits

What moved

Nothing was deleted without a destination. Environment, commands, gates, testing strategy and fixtures moved to .github/CONTRIBUTING.md. Docstring conventions, doctest rules, changelog conventions, code-block rules, the comment gates and slop prevention moved to .github/WRITING.md, along with the whole of docs/AGENTS.md ("Documentation voice"), which is prose policy and now has one home.

Verification

Every gate was run, and the doctest collection count was recorded before and after. Documented examples are executed by pytest, so a preserved example that stopped being collected would be an invisible test deletion β€” the count is the proof it did not happen.

This repository

AGENTS.md goes from 719 lines to 66, across 11 changed files. The only non-documentation change is a pyproject.toml wheel exclude: hatchling packages every file under the package directory, so the new nested AGENTS.md would otherwise ship inside every install. The built wheel is byte-identical to trunk's apart from that file's absence.

why: AGENTS.md is read on every task, so a policy that matters to one
class of change costs context on all the others. Splitting how we work
from how we write lets each be loaded when it applies, and keeps both
discoverable to humans rather than only to agents.

what:
- Replace the AGENTS.md body with a router: the project map, universal
  change discipline, then one pointer per class of change
- Add .github/WRITING.md for prose policy: voice, README, the CLI
  (exit statuses, stdout/stderr, machine output, destructive-op
  invariants), workspace-file conventions, doctests, MyST roles, the
  changelog, docstrings, source comments, commits, and slop prevention
- Add .github/CONTRIBUTING.md for workflow policy: setup, the gates,
  imports/typing, tests and fixtures, docs build, releasing, PRs,
  decorum, and security, using the repo's real commands throughout
- Add src/tmuxp/AGENTS.md (with a CLAUDE.md symlink) for logging
  standards and CLI color semantics, scoped to the package
- Turn docs/project/contributing.md and code-style.md into pointer
  pages at the canonical .github files (a MyST {include} across the
  docs/ boundary emits dead anchors on this Sphinx setup), keeping
  every existing (label)= anchor
- Rewrite README.md: console/$ code blocks, one command per block, and
  correct the developmental-release install examples to the
  --prerelease allow form CHANGES already documents
- Delete docs/AGENTS.md, docs/CLAUDE.md, and the lowercase
  .github/contributing.md, now superseded
- Exclude the nested AGENTS.md and its CLAUDE.md symlink from the wheel;
  hatchling packages every file under the package directory, so contributor
  guidance would otherwise ship inside every install
@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 82.55%. Comparing base (e0533e8) to head (a4a80bc).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1086   +/-   ##
=======================================
  Coverage   82.55%   82.55%           
=======================================
  Files          31       31           
  Lines        2768     2768           
  Branches      518      518           
=======================================
  Hits         2285     2285           
  Misses        346      346           
  Partials      137      137           

β˜” View full report in Codecov by Harness.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony tony changed the title Docs(refactor[agents]): Route instead of restate docs: Standardize via CONTRIBUTING.md + WRITING.md Aug 22, 2026
@tony
tony merged commit 6286b4a into master Aug 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant